package com.example.demo.Entity;

import org.springframework.boot.autoconfigure.domain.EntityScan;

import java.math.BigDecimal;
@EntityScan

public class CoreData {
    private String OrderNumber;
    private String OrderType;
    private BigDecimal ResultMoney;
    private BigDecimal Ralculate;

    public String getOrderNumber() {
        return OrderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        OrderNumber = orderNumber;
    }

    public String getOrderType() {
        return OrderType;
    }

    public void setOrderType(String orderType) {
        OrderType = orderType;
    }

    public BigDecimal getResultMoney() {
        return ResultMoney;
    }

    public void setResultMoney(BigDecimal resultMoney) {
        ResultMoney = resultMoney;
    }

    public BigDecimal getRalculate() {
        return Ralculate;
    }

    public void setRalculate(BigDecimal ralculate) {
        Ralculate = ralculate;
    }
    public  BigDecimal CaculatePurchasingMoney(BigDecimal money){
        return (money.multiply(BigDecimal.valueOf(5)));
    }
}
